<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: data_type_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structdata__type__t-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">data_type_t Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Information about a data type. </p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a1b4ff140fd32a5e2222a5698f7c5e7ad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b4ff140fd32a5e2222a5698f7c5e7ad"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#a1b4ff140fd32a5e2222a5698f7c5e7ad">cbsize</a></td></tr>
<tr class="memdesc:a1b4ff140fd32a5e2222a5698f7c5e7ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">size of this structure <br /></td></tr>
<tr class="separator:a1b4ff140fd32a5e2222a5698f7c5e7ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b886dfe21a87737ec0d16fcd8b667c9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b886dfe21a87737ec0d16fcd8b667c9"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#a8b886dfe21a87737ec0d16fcd8b667c9">ud</a></td></tr>
<tr class="memdesc:a8b886dfe21a87737ec0d16fcd8b667c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">user-defined data to be passed to callbacks <br /></td></tr>
<tr class="separator:a8b886dfe21a87737ec0d16fcd8b667c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac12a20073b00383f0867a9da5d12deae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac12a20073b00383f0867a9da5d12deae"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#ac12a20073b00383f0867a9da5d12deae">props</a></td></tr>
<tr class="memdesc:ac12a20073b00383f0867a9da5d12deae"><td class="mdescLeft">&#160;</td><td class="mdescRight">properties <br /></td></tr>
<tr class="separator:ac12a20073b00383f0867a9da5d12deae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afff1662287d740f7b0a970d0a9b8af30"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afff1662287d740f7b0a970d0a9b8af30"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#afff1662287d740f7b0a970d0a9b8af30">name</a></td></tr>
<tr class="memdesc:afff1662287d740f7b0a970d0a9b8af30"><td class="mdescLeft">&#160;</td><td class="mdescRight">name of the data type. must be unique <br /></td></tr>
<tr class="separator:afff1662287d740f7b0a970d0a9b8af30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27e86ace0aa6fc9a04107e01b7907d38"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27e86ace0aa6fc9a04107e01b7907d38"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#a27e86ace0aa6fc9a04107e01b7907d38">menu_name</a></td></tr>
<tr class="memdesc:a27e86ace0aa6fc9a04107e01b7907d38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visible data type name to use in menus if NULL, no menu item will be created. <br /></td></tr>
<tr class="separator:a27e86ace0aa6fc9a04107e01b7907d38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc6e955bf788a12e00fbcf6803ddd4f1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc6e955bf788a12e00fbcf6803ddd4f1"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#adc6e955bf788a12e00fbcf6803ddd4f1">hotkey</a></td></tr>
<tr class="memdesc:adc6e955bf788a12e00fbcf6803ddd4f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hotkey for the corresponding menu item if NULL, no hotkey will be associated with the menu item. <br /></td></tr>
<tr class="separator:adc6e955bf788a12e00fbcf6803ddd4f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07bf4a45490e0caa2c92c1187d3d9d1b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07bf4a45490e0caa2c92c1187d3d9d1b"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#a07bf4a45490e0caa2c92c1187d3d9d1b">asm_keyword</a></td></tr>
<tr class="memdesc:a07bf4a45490e0caa2c92c1187d3d9d1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">keyword to use for this type in the assembly if NULL, the data type can not be used in the listing it can still be used in cpuregs window <br /></td></tr>
<tr class="separator:a07bf4a45490e0caa2c92c1187d3d9d1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae450c0293ce0e74037fbc7ff9ed477e2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae450c0293ce0e74037fbc7ff9ed477e2"></a>
<a class="el" href="pro_8h.html#adbc570541d9f9a0c4489f9f1fe5f5699">asize_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#ae450c0293ce0e74037fbc7ff9ed477e2">value_size</a></td></tr>
<tr class="memdesc:ae450c0293ce0e74037fbc7ff9ed477e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">size of the value in bytes <br /></td></tr>
<tr class="separator:ae450c0293ce0e74037fbc7ff9ed477e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c9a35c40180ae14d5c2cb303de83ddc"><td class="memItemLeft" align="right" valign="top">bool(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#a6c9a35c40180ae14d5c2cb303de83ddc">may_create_at</a> )(void *<a class="el" href="structdata__type__t.html#a8b886dfe21a87737ec0d16fcd8b667c9">ud</a>, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, size_t nbytes)</td></tr>
<tr class="memdesc:a6c9a35c40180ae14d5c2cb303de83ddc"><td class="mdescLeft">&#160;</td><td class="mdescRight">May create data? NULL means always may.  <a href="#a6c9a35c40180ae14d5c2cb303de83ddc">More...</a><br /></td></tr>
<tr class="separator:a6c9a35c40180ae14d5c2cb303de83ddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa62760b91c14aaaaeef838a784b0c9aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#adbc570541d9f9a0c4489f9f1fe5f5699">asize_t</a>(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdata__type__t.html#aa62760b91c14aaaaeef838a784b0c9aa">calc_item_size</a> )(void *<a class="el" href="structdata__type__t.html#a8b886dfe21a87737ec0d16fcd8b667c9">ud</a>, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, <a class="el" href="pro_8h.html#adbc570541d9f9a0c4489f9f1fe5f5699">asize_t</a> maxsize)</td></tr>
<tr class="memdesc:aa62760b91c14aaaaeef838a784b0c9aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is used to determine size of the (possible) item at 'ea'.  <a href="#aa62760b91c14aaaaeef838a784b0c9aa">More...</a><br /></td></tr>
<tr class="separator:aa62760b91c14aaaaeef838a784b0c9aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a6c9a35c40180ae14d5c2cb303de83ddc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> * data_type_t::may_create_at) (void *<a class="el" href="structdata__type__t.html#a8b886dfe21a87737ec0d16fcd8b667c9">ud</a>, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, size_t nbytes)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>May create data? NULL means always may. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ud</td><td>user-defined data </td></tr>
    <tr><td class="paramname">ea</td><td>address of the future item </td></tr>
    <tr><td class="paramname">nbytes</td><td>size of the future item </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa62760b91c14aaaaeef838a784b0c9aa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#adbc570541d9f9a0c4489f9f1fe5f5699">asize_t</a>(<a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> * data_type_t::calc_item_size) (void *<a class="el" href="structdata__type__t.html#a8b886dfe21a87737ec0d16fcd8b667c9">ud</a>, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, <a class="el" href="pro_8h.html#adbc570541d9f9a0c4489f9f1fe5f5699">asize_t</a> maxsize)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is used to determine size of the (possible) item at 'ea'. </p>
<p>This callback is required only for varsize datatypes. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ud</td><td>user-defined data </td></tr>
    <tr><td class="paramname">ea</td><td>address of the item </td></tr>
    <tr><td class="paramname">maxsize</td><td>maximal size of the item </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if no such item can be created/displayed </dd></dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="bytes_8hpp.html">bytes.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
